package com.sherllinhe.batch.feign;

import com.sherllinhe.common.resp.CommonResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Date;

/**
 * 功能：
 * 作者：Sherllin He
 * 日期：2025/6/4 20:25
 */
@FeignClient(value = "business",fallback = BussinessFeignFallback.class)
public interface BusinessFeign {
    @GetMapping("/business/hello")
    String hello1();

    @GetMapping("/business/admin/daily-train/gen-daily/{date}")
    CommonResp<Object> genDaily(@PathVariable @DateTimeFormat(pattern = "yyyy-MM-dd") Date date);
}
